package com.example.demo.mapper;

import com.example.demo.bean.SItem;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SItemMapper {
    int deleteByPrimaryKey(@Param("ordId") Integer ordId, @Param("itemId") Integer itemId);

    int insert(SItem record);

    SItem selectByPrimaryKey(@Param("ordId") Integer ordId, @Param("itemId") Integer itemId);

    List<SItem> selectAll();

    int updateByPrimaryKey(SItem record);
    
    List<SItem> selectByProductId(Integer id);
    
    SItem selectByOrdId(Integer id);
}